package org.originit.factory.support;

import org.originit.exception.BeansException;
import org.originit.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public interface InstantiationStrategy {

    Object instantiate (BeanDefinition beanDefinition,String beanName,Constructor<?> constructor,Object[] args) throws  BeansException;
}
